package com.hzcx.app.simplechat.ui.user.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hzcx.app.simplechat.R;
import com.hzcx.app.simplechat.ui.user.bean.UserInfoBean;
import com.hzcx.app.simplechat.util.glide.GlideUtils;

import java.util.List;

public class MomentImgAdapter extends BaseQuickAdapter<UserInfoBean.DynamicDataBean, BaseViewHolder> {
    public MomentImgAdapter(@Nullable List<UserInfoBean.DynamicDataBean> data) {
        super(R.layout.rv_item_moment_img,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, UserInfoBean.DynamicDataBean item) {
        GlideUtils.loadImgAsCenter(mContext,item.getImgurl(),helper.getView(R.id.iv_img));
    }
}
